package ds.factcom.domain.invoice;

import java.util.List;

import ds.factcom.domain.client.Client;
import ds.factcom.domain.item.Item;

/**
 * @author Javier De Luca, Maximiliano Herrera, Matias Samblancat
 */
public class InvoiceCompany extends Invoice {

	private static final long serialVersionUID = -343235158893389390L;

	public InvoiceCompany(Client client,List<Item> listItem) {
		super(client,listItem);
	}
	
	@Override
	protected Float generateMountAbsoluty() {
		Float mount = this.getMountNet();
		if(this.getListItem().size() < 10){
			mount = mount*1.05F;
		}else{
			mount = mount * 1.04F;
		}
		return mount;
	}
}
